<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("path", basePath);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="<%=path%>/adrs/changeAdd.do" method="post">
		<table>
			<tr>
			    <td>序号</td>
				<td>名字</td>
				<td>电话</td>
				<td>地址</td>
				<td>详细地址</td>
			</tr>
			<c:forEach items="${requestScope.addL }" var="ad">
			<tr>
			    <td><input type="text" name="id" value="${ad.id }" /></td>
				<td><input type="text" name="name" value="${ad.name }" /></td>
				<td><input type="text" name="phone" value="${ad.phone }" /></td>
				<td><input type="text" name="address" value="${ad.address }" /></td>
				<td><input type="text" name="addDetail" value="${ad.addDetail }" /></td>
			</tr>
			<input type="hidden" value="${ad.userId }" name="userId" />
			</c:forEach>
			
		</table>
		
		<input type="reset" value="重置"/>
		<input type="submit" value="提交"/>
	</form>
	
</body>
</html>